<?php

namespace App\Http\Controllers\Api\User;

use Illuminate\Http\Request;
use App\Http\Requests\Api\ApiRequest;
use App\Http\Controllers\Controller;
use App\Models\Report;

class ReportController extends Controller
{
   

    public function save(ApiRequest $request)
    {
    	$data = $request->pure();
    	$data['user_id']  = $request->user_id;
    	$data['contents'] = str_limit($request->contents,300);
    	Report::create($data);
    	//$rs['data']   = $data;
   		$rs['status'] = true;
   		return response()->json($rs);
    }


}
